package com.bilibili.enumdemo;
//枚举
public class Test {
    public static void main(String[] args) {
    move(A.上);
    }
    public static void move(A a){
        switch (a){
            case 上:
                System.out.println("向上移动");
                //break;
            case 下:
                System.out.println("向下移动");
            case A.左:
                System.out.println("向左移动");
            case A.右:
                System.out.println("向右移动");
        }
    }
}
